alter table "PatientRegistrationDetail" add column "PayTypeId" int references "PayType"("PayTypeId");
--------

update "PatientRegistrationDetail" set "PayTypeId" = 1;
----------